package com.kly.pay.serviceImpl;

import com.kly.PayTestService;
import com.kly.pay.db.dao.PayTestDao;
import com.kly.pay.db.entity.PayTestEntity;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class PayTestServiceImpl implements PayTestService {
    @Autowired
    private PayTestDao payTestDao;

    @Override
    public String queryByPayId(Long payId) {
        PayTestEntity payTestEntity = payTestDao.selectByPrimaryKey(payId);
        return payTestEntity == null ? null : payTestEntity.getName();
    }
}
